﻿#pragma once
#include <string>
#include <sstream>
#include <random>
#include <time.h>


using namespace std;


// 基础类型互转
template<class out_type,class in_value>
out_type Convert(const in_value & inValue)
{
	stringstream stream;
	stream<<inValue;	//向流中传值

	out_type result;	//这里存储转换结果
	stream>>result;		//向result中写入值

	return result;
}

struct RR 
{
	short r,g,b;
	RR(short R,short G, short B)
		:r(R),g(G),b(B)
	{
	}
};

unsigned GetMagicColor();

unsigned GetColor();